#pragma once
#include "MyDef.h"
#include "SingleGrid.h"
#include <list>
using namespace std;

class GridTeam
{
public:
	GridTeam(void);
	~GridTeam(void);

	int m_nMemberX[g_cnTeamSize];
	int m_nMemberY[g_cnTeamSize];
	int m_nCount[g_cnTeamSize];
	list<int> m_CountRecord[g_cnTeamSize];
	int m_nTeamIndex;

	int SetAsRow(int row);
	int SetAsCol(int col);
	int SetNormalBlock(int block);

	friend ostream &operator<<(ostream &os, const GridTeam &gt);
	int SetAsColor(int color);
	int CalcCount(void);
	SingleGrid* TrySingle(void);
	int DropDigit(int digit);
};
